
<%@page import="jml.defaultimple.web.WebFacade"%>
<%@page import="jml.def.Library"%>
<%@page import="jml.def.Filter"%>
<%@page import="jml.def.Label"%>
<%
	String filterName = request.getParameter("filterName");
	String labelName = request.getParameter("labelName");

	Library library = (Library) application.getAttribute("library");
	WebFacade webFacade = (WebFacade) application.getAttribute("webFacade");
	

	Filter filter = library.getFilter(filterName); 
	Label label = filter.getLabel(labelName);
	int count = filter.countTitles(label.getName(),true);
	String sAlbums = count<2?"album":"albums";
%>          
<div class="tabSeccion">
	<h3 title="<%=label.getName()%>" class="ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" onclick="loadCovers(this, '<%=filterName%>', '<%=labelName%>')">
     	
     		<span class="titleLabel"><%=label.getName()%></span>
     		<span class="infoLabel"><%=webFacade.getLabelInfo(filter,label)%></span>
     		<span class="count"><%=count%> <%=sAlbums%></span>
     	
	</h3>
	
</div>